package com.maimao.model.dynamicform.props;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.maimao.model.dynamicform.props.Props;

import java.io.Serializable;

/**
 * 数字输入框
 * @author MaoLin Wang
 * @date 2020/12/19 9:23 下午
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InputNumberProps extends Props implements Serializable {


    private static final long serialVersionUID = 274517496146492505L;
    private String max;
    private String min;
    private Integer step;

    private boolean readonly;
    /**
     * 是否可编辑
     */
    private boolean editable;
    /**
     * 数字精度
     */
    private Integer precision;

    public InputNumberProps() {
        editable=true;
        precision=2;
    }

    public String getMax() {
        return max;
    }

    public void setMax(String max) {
        this.max = max;
    }

    public String getMin() {
        return min;
    }

    public void setMin(String min) {
        this.min = min;
    }

    public Integer getStep() {
        return step;
    }

    public void setStep(Integer step) {
        this.step = step;
    }

    public boolean isReadonly() {
        return readonly;
    }

    public void setReadonly(boolean readonly) {
        this.readonly = readonly;
    }

    public boolean isEditable() {
        return editable;
    }

    public void setEditable(boolean editable) {
        this.editable = editable;
    }

    public Integer getPrecision() {
        return precision;
    }

    public void setPrecision(Integer precision) {
        this.precision = precision;
    }
}
